from game_object_base import game_object_base

class game_object(game_object_base):
    def __init__(self, surf):
        self.image = surf
        self.rect = self.image.get_rect()
    
    def update(self):
        if self.dirty:
            self.rect.x = self.posX
            self.rect.y = self.posY
            self.dirty = False
    
    def move(self, x, y):
        self.posX = x
        self.posY = y
        self.dirty = True
